import java.time.LocalDate;

public class Todo {
    private String title;
    private LocalDate date;
    private boolean completed;

    public Todo(String title, LocalDate date) {
        this.title = title;
        this.date = date;
        this.completed = false;
    }

    public String getTitle() {
        return title;
    }

    public LocalDate getDate() {
        return date;
    }

    public boolean isCompleted() {
        return completed;
    }

    public void setCompleted(boolean completed) {
        this.completed = completed;
    }

    @Override
    public String toString() {
        return String.format("%s (日期: %s) %s", 
            title, 
            date.toString(), 
            completed ? "[已完成]" : "[未完成]");
    }
} 